package com.sugon.modules.mold.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * 维修记录通用参数VO,用于添加维修记录时业务信息保存
 *
 * @author YuXD
 * @date 2020-11-24 15:43
 */
@Data
public class BaseRepairRecordParamVO<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "工单必选！")
    private String ticketId;

    /**
     * 模具ID
     */
    @NotBlank(message = "模具必选！")
    private String moldId;

    /**
     * 故障类型，一般指故障类型ID
     */
    @NotBlank(message = "故障类型必选！")
    private String type;

    @NotBlank(message = "故障描述必填！")
    private String recordDescr;

    @NotBlank(message = "解决办法必填！")
    private String solution;

    /**
     * 停线结束时间：设备维修导致停线时，必填
     */
    private String stoplineEndTime;

    private String remark;

    /**
     * 业务工单信息
     */
    private T ticket;

}
